package main.Q2501_2600;

import java.util.HashSet;
import java.util.Set;

public class Q2581_2590 {
	public static void main(String[] args) {
		System.out.println("Question2581：");
		System.out.println("Question2582：");
		System.out.println("Question2583：");
		System.out.println("Question2584：");
		System.out.println("Question2585：");
		System.out.println("Question2586：统计范围内的元音字符串数");
		System.out.println("Question2587：");
		System.out.println("Question2588：");
		System.out.println("Question2589：");
		System.out.println("Question2590：");
	}
}

class Question2586 {
	public int vowelStrings(String[] words, int left, int right) {
		int result = 0;
		Set<Character> set = new HashSet<>();
		set.add('a');
		set.add('e');
		set.add('i');
		set.add('o');
		set.add('u');
		for (int i = left; i <= right; i++) {
			int length = words[i].length();
			if (set.contains(words[i].charAt(0)) && set.contains(words[i].charAt(length - 1))) result++;
		}
		return result;
	}
}